<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>dept</title>
</head>
<body>
<script>
  let dept = {
    deptno:40,
    dname :'总装车间',
    loc:'深圳市',
  };
  let jsonstring = JSON.stringify(dept)
  console.log(jsonstring)
</script>
</body>
</html>
